<div id="pager" class="pagebar">
    总计 <b>{$records}</b>  个记录&nbsp;&nbsp;共 <b>{$total_page}</b>  页&nbsp;&nbsp;<span><img src="{IMG_URL}/web/break.gif" /></span>&nbsp;&nbsp;
    <a{if $page > 1} href="{APP_URL}/index.php/{$m}/{$p}/cat_id/{$cat_id}{$parameter}/page/{echo $page - 1}.shtml"{/if}><img src="{IMG_URL}/web/pageup_{echo $page > 1 ? 3 : 4}.gif" /></a>
    {for $i=0,$curr_page=($page-$prev_page_nums)>0?$page-$prev_page_nums:1 $i<$prev_page_nums&&$curr_page<$page $i++,$curr_page++}
    <a href="{APP_URL}/index.php/{$m}/{$p}/cat_id/{$cat_id}{$parameter}/page/{$curr_page}.shtml">{$curr_page}</a>
    {/for}
    <span class="page_now">{$page}</span>
    {for $i=0,$curr_page=$page+1 $i<$next_page_nums&&$curr_page<=$total_page $i++,$curr_page++}
    <a href="{APP_URL}/index.php/{$m}/{$p}/cat_id/{$cat_id}{$parameter}/page/{$curr_page}.shtml">{$curr_page}</a>
    {/for}
    <a{if $page < $total_page} href="{APP_URL}/index.php/{$m}/{$p}/cat_id/{$cat_id}{$parameter}/page/{echo $page + 1}.shtml"{/if}><img src="{IMG_URL}/web/pagedown_{echo $page < $total_page ? 3 : 4}.gif" /></a>
</div>